/////////////////////////////////////////////////////////////////////////
// All rights reserved
//
// Use and distribute freely, except: don't remove my name from the
// source or documentation (don't take credit for my work), mark your
// changes and extend the author list below, don't alter or remove this notice.
//
// Send bug reports, bug fixes, enhancements, requests, etc.,
// and I'll try to keep a version up to date.
// xiezheheng@yahoo.com
//
// Author list: Zheheng XIE
//
/////////////////////////////////////////////////////////////////////////


#include "stdafx.h"
#include "uc_undoreq.h"
#include "mm_txnmanager.h"

UC_UndoReq::UC_UndoReq(FW_Document* pDoc)
:FW_Request(pDoc)
{
}

UC_UndoReq::~UC_UndoReq(void)
{
}

// virtual
HRESULT UC_UndoReq::Script()
{
	return S_OK;
}

// virtual 
HRESULT UC_UndoReq::InitFromScript()
{
	return S_OK;
}

// virtual 
HRESULT UC_UndoReq::Execute()
{
	if(MM_TxnManager::Get()->UndoTxn())
		return S_OK;
	return E_FAIL;
}